import Vue from "vue";
import "./plugins/axios";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import randomColor from "./utils/random.js";
import "./plugins/element.js";
import ElementUI from "element-ui";
import mavonEditor from "mavon-editor";
import "mavon-editor/dist/css/index.css";
import "./assets/css/globel.css";
import "./icons/index";

Vue.prototype.$randomColor = randomColor;
Vue.use(ElementUI);
Vue.use(mavonEditor);
Vue.config.productionTip = false;

Vue.mixin({
  methods: {
    getAuthHeader() {
      return {
        authorization: `Bearer ${localStorage.token}`,
      };
    },
  },
});

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
